/*
 * @Author: mikey.zhaopeng
 * @Date:   2016-03-21 17:58:13
 * @Last Modified by:   mikey.zhaopeng
 * @Last Modified time: 2016-07-13 15:52:51
 */

'use strict';

define([
    './baseBean',
], function(
    BaseBean
) {
    function me() {
        BaseBean.apply(this, arguments);
        var self = this;

        this.report = function(params, callback, errorCallback) {
            self.p('/ec/report', params, function(result) {
                if (callback) {
                    callback(result, params);
                }
            }, errorCallback);
        }


        this.report2 = function(params, callback, errorCallback) {
            self.p('/ecReport/report', params, function(result) {
                if (callback) {
                    callback(result, params);
                }
            }, errorCallback);
        }

        this.allWebSite = function(callback, errorCallback) {
            self.p('/ec/allWebSite', {}, function(result) {
                if (callback) {
                    callback(result);
                }
            }, errorCallback);
        }

        this.abGraph = function(params, callback, errorCallback) {
            self.p('/ecReport/abGraph', params, function(result) {
                if (callback) {
                    callback(result);
                }
            }, errorCallback);
        }

    };
    return new me();
});
